// Functions on Ready
$(document).ready(function() {
	// Initialize BackBone Router
	var appRouter = new AppRouter()
	Backbone.history.start()
	// Initialize BackBone Router
	
	resizeEnviroment()
})
// Functions on Ready

// Functions on Resize Window
$(window).resize(function() {
	resizeEnviroment()
	var $height = $(window).height()
	$('.app-holder').css('height',($height-45)+'px')
	if($('.icon-small').length){
		$('.icon-small').attr('width','24').attr('height','24')
	}
})
// Functions on Resize Window

// Resize Enviroment
function resizeEnviroment()	 {
	var $height = $(window).height()
	
	$('.home-screen').css('height',($height-45)+'px')
}
// Resize Enviroment

// Time
setInterval(function(){
	hour()
},1000)
	
function hour() {
	$('.notifications .hour').html(date('H:i'))
}
// Time